import request from '@/utils/request'
import QS from 'qs'

/** 添加门店 */
export function storeAdd(data) {
  return request({
    url: '/shop/store/addStore',
    method: 'post',
    data
  })
}

/** 获取门店列表 */
export function storeList(data) {
  return request({
    url: '/shop/store/storeList',
    method: 'post',
    data
  })
}

/** 门店列表删除 */
export function delStore(data) {
  return request({
    url: '/shop/store/delStore',
    method: 'post',
    data: QS.stringify(data)
  })
}

/** 门店详情 */
export function storeDetail(data) {
  return request({
    url: '/shop/store/storeDetail',
    method: 'post',
    data: QS.stringify(data)
  })
}

/** 运维订单列表 */
export function storeOrderAdminlist(data) {
  return request({
    url: '/storeOrderAdmin/list',
    method: 'post',
    data
  })
}

/** 门店详情-获取商品列表 */
export function commodityDetail(data) {
  return request({
    url: '/shop/store/commodityDetail/list',
    method: 'post',
    data: QS.stringify(data)
  })
}

/** 门店详情-RFID设备 */
export function commodityequipment(data) {
  return request({
    url: '/shop/store/commodityDetail/equipment',
    method: 'post',
    data: QS.stringify(data)
  })
}

/** 门店详情-运维费管理 */
export function commodityDetailSetting(data) {
  return request({
    url: '/shop/store/commodityDetail/setting',
    method: 'post',
    data: QS.stringify(data)
  })
}

/** 门店详情-根据商品id获取运维模费板 */
export function commodityDetailGetSetting(data) {
  return request({
    url: '/shop/store/commodityDetail/getSetting',
    method: 'get',
    params: data
  })
}

/** RFID设备-商品-RFID设备-查看详情 */
export function EquipmentDetal(data) {
  return request({
    url: '/shop/commodityDetail/EquipmentDetal',
    method: 'post',
    data: QS.stringify(data)
  })
}

/** 门店详情-取消运营 */
export function commodityDetialcancel(data) {
  return request({
    url: '/shop/store/commodityDetail/cancel',
    method: 'post',
    data: QS.stringify(data)
  })
}

